﻿
using System;
using System.Collections.Generic;
using System.Text;
using Common;

namespace Models
{
  public class SiteConfig
  {

    private static SystemConfig _config = null;
    public static SystemConfig Current
    {
      get
      {
        if (_config == null)
        {
          _config = ConfigurationManager.GetSection<SystemConfig>("SiteConfig");
        }
        return _config;
      }
    }

    public static string GetApiHost(string testUnitId)
    {
      return Current.ApiHostList[testUnitId].host;
    }
  }

}
